{include file="header.html"}
<div class="row">
  <div class="span12"> {include file='options/nav.html'}
    <form method='post' action='{$appadmin}?m=options&a=savemore'>
 
      <table class='table table-bordered' width='100%'>
        <tr>
          <td width="100">主题：</td>
          <td><div style="width:200px; height:200px; float:left;">
          <textarea name="titles" style="width:200px; height:200px;"></textarea>
          </div>
          	<div style="width:300px; height:200px; margin-left:30px; float:left">每行一个</div>
          </td>
        </tr>
        <tr>
          <td>上级：</td>
          <td><select name="pid">
          <option value="0">请选择</option>
          {foreach item=c from=$opt_list}
          <option  value="{$c.id}" {if $c.id eq $data.pid or $c.id eq get('pid')} selected="selected"{/if}>{$c.title}</option>
          {if $c.child}
              {foreach item=cc from=$c.child}
              <option  value="{$cc.id}" {if $cc.id eq $data.pid or $cc.id eq get('pid')} selected="selected"{/if}>|--{$cc.title}</option>
              {/foreach}
          {/if}
          {/foreach}
          </select></td>
        </tr>
      
        
        <tr>
          <td>类型：</td>
          <td>
           
           <select name="tablename">
    	<option value="0">请选择</option>
    	{foreach item=c key=k from=$table_list}
        <option value="{$k}" {if $k eq $tablename} selected="selected"{/if}>{$c}</option>
        {/foreach}
    </select>
           </td>
        </tr>
         
        <tr>
          <td>状态：</td>
          <td><input type='radio' name='status' id='status' value='1' {if $data.status eq 1 or !$data} checked{/if} >显示 
          <input type='radio' name='status' id='status' value='0'  {if $data.status eq 0 && $data} checked{/if} >隐藏</td>
        </tr>
        {if $data}
        <tr>
          <td>时间：</td>
          <td>{$data.dateline|date:Y-m-d H:m}</td>
        </tr>
        {/if}
        <tr>
          <td></td>
          <td><input type='submit' value='保存' class='btn btn-success'></td>
        </tr>
      </table>
    </form>
  </div>
</div>
<script language="javascript">
$(function(){
	$("#model_id").bind("change",function(){
		$.get("{$appadmin}?m=options&a=GetType&model_id="+$(this).val(),function(data){
			$("#type_id").empty().append(data);
		})
		
	});
});
</script>
{include file="footer.html"}